#pragma once
#include <iostream>

using namespace std;

class Time
{
public:
	Time();
	Time(int h, int m = 0);
	void AddMin(int m);
	void AddHr(int h);
	void Reset(int h = 0, int m = 0);
	//Time operator+(const Time& t)const;
	//Time operator-(const Time& t)const;
	//Time operator*(double n)const;

	friend Time operator+(const Time& t1, const Time& t2);
	friend Time operator-(const Time& t1, const Time& t2);
	friend Time operator*(const Time& t,double m);

	friend Time operator*(double m, const Time& t) { return t* m; }

	friend ostream& operator<<(ostream& os, const Time& t);

private:
	int hours;
	int minutes;


};

